package com.tuFat.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tuFat.dao.SignMapper;
import com.tuFat.model.Sign;
import com.tuFat.model.dto.SignDTO;
import com.tuFat.service.SignService;

/**
 * sign - 签到 Service实现类
 * @date 2018-08-01
 */
@Service("signService")
public class SignServiceImpl implements SignService {

    @Autowired
    private SignMapper signMapper;  
		
	/**
     * 新增
     * @param record
     */
	@Override
    public Long insert(Sign record) {
		return signMapper.insert(record);
	}

    /**
     * 修改
     * @param record
     */
	@Override 
    public int update(Sign record) {
		return signMapper.update(record);
	}

    /**
     * 删除
     * @param record
     */
	@Override 
    public void delete(Sign record) {
		signMapper.delete(record);
	}

    /**
     * 按主键查询
     * @param record
     * @return
     */
	@Override
    public SignDTO findById(Long id) {
		return signMapper.findById(id);
	}

}
